package com.csun.cmny.provider.model.dto.rfid;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-01-21 16:46
 * @Description: the class bind dmc rfid reader dto
 */
@Data
@ApiModel(value = "绑定门禁读卡器Dto")
public class BindDmcRfidReaderDto implements Serializable {

    private static final long serialVersionUID = -2478235378373653738L;

    @NotNull(message = "{device.id.null}")
    private Long deviceId;

    @NotNull(message = "{dmc.rfid.reader.location.null}")
    @NotEmpty(message = "{dmc.rfid.reader.location.null}")
    private String location;
}
